getAssertFailEvt (get event of last failed assertion)

Deprecated

Since: v2.0.

Please use getAssertFailEvtLong() instead.

Syntax:

assertFailEvt = getAssertFailEvt();

Description:

Returns a data structure with information about the last failed assertion.

Funktionswert:

  // Assertion Failure Event.
D AssertFailEvt_t...
D                 ds                  Qualified Based(template)
D  msg                         256a
D  callStkEnt                         LikeDs(CallStkEnt_t)
D                                     Dim(MAX_CALL_STK_SIZE)

D MAX_CALL_STK_SIZE...
D                 c                   Const(64)

  // Call Stack Entry.
D CallStkEnt_t    ds                  Qualified Based(template)
D  pgmNm                        10a
D  modNm                        10a
D  procNm                      256a
D  specNb                       10a

Example:

assertFailEvt = getAssertFailEvt();

assert( excpWasSeen :
        'aEqual( Hello : Good bye )'
      + ' should have raised an error message.' );

aEqual( 'Expected ''Hello'', but was ''Good bye''.' :
        assertFailEvt.msg );